package Demo8;
import java.util.HashSet;
import java.util.Set;
public class DoubleBall {
    public static void main(String[] args) {
        int[] redBall=new int[6];
        int num=0;
        Set<Integer> redball = new HashSet<Integer>();
       for(int i=0;i<6;i++){
          num=(int)(Math.random()*(33-1+1))+1;
          redball.add(num);
       }
        System.out.print("红球：  ");
       for (Integer integer : redball) {
            System.out.print(integer + "\t");
       }
        int blueBall=(int)(Math.random()*(16-1+1))+1;
        System.out.println("蓝球："+blueBall);
    }
}
